<?php

class pesanTable extends Doctrine_Table
{
    public function getActiveUserPesan($id_user) {
        $q = $this->createQuery('p')
                ->leftJoin('p.user u')
                ->where('p.id_tujuan = ?', $id_user);

        return $q->execute();
    }
}